
<?php 
/* 
Template Name: load_prosessing_ngdung_notadmin- ajax 
*/
?>
<?php 
            global $current_user;
            get_currentuserinfo();
     
        if (isset($_POST['idmay'])) 
                      {
                        $idmay = $_POST['idmay'] ;
                       // $idmayng = $_POST['idmayngdung'] ;

                        $sql = "SELECT wp_user_wp_may.ID,wp_user_wp_may.id_may,wp_users.ID,wp_users.user_login
                                FROM wp_user_wp_may
                                INNER JOIN wp_users
                                ON wp_users.ID = wp_user_wp_may.ID
                                WHERE wp_user_wp_may.id_may = ".$idmay ;
                                // ." AND wp_user_wp_may.id_may =".$idmayng ;
                        //var_dump($sql);
                        $row = $wpdb->get_results($sql);
                        //var_dump($row);
                        $json = json_encode($row);
                          echo $json;
                      }//if (isset($_POST['idmay'])) 
 
    
